/*
 * @Author: your name
 * @Date: 2021-03-02 15:29:31
 * @LastEditTime: 2021-08-27 09:09:13
 * @LastEditors: dailuyu
 * @Description: In User Settings Edit
 * @FilePath: \TaskErrorManage\src\directives\index.js
 */
export default {
  install: (app, { router, store }) => {
    const files = require.context("@/directives/modules", false, /\.js$/);
    files.keys().forEach((key) => {
      let name = key.replace(/(\.\/|\.js)/g, "");
      let method = files(key).default;
      app.directive(name, (el, binding) =>
        method(el, binding, app, router, store)
      );
    });
  },
};
